#! python
from xml.dom.minidom import parse

if __name__=='__main__':
    dom = parse('a.xml');
    root = dom.documentElement;
    nodes = root.getElementsByTagName('file');
    for node in nodes:
        if node.attributes['name'].value=='a.xml':
            print "Found";